<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/vacancy_detail_screen"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="?colorSecondary"
    android:orientation="vertical">

    <ProgressBar
        android:id="@+id/progressBar"
        android:layout_width="44dp"
        android:layout_height="44dp"
        android:layout_gravity="center"
        android:layout_marginTop="150dp"
        android:indeterminateTint="@color/Blue_yp"
        android:visibility="gone" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:visibility="visible">

        <androidx.appcompat.widget.Toolbar
            android:id="@+id/vacancy_toolbars"
            style="@style/toolbarTitle"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:navigationIcon="@drawable/back_button"
            app:title="@string/vacancy">

            <ImageView
                android:id="@+id/button_add_to_favorites"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="end"
                android:layout_marginEnd="@dimen/dimen_8dp"
                android:paddingEnd="@dimen/dimen_16dp"
                style="@style/FavoriteButtonStyle"
                android:visibility="visible" />

            <ImageView
                android:id="@+id/button_share"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="end"
                android:layout_marginEnd="32dp"
                android:src="@drawable/share_button_drawable"
                tools:ignore="RtlSymmetry" />

        </androidx.appcompat.widget.Toolbar>

        <ScrollView
            android:id="@+id/fragment_notifications"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:visibility="visible">

            <androidx.constraintlayout.widget.ConstraintLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:visibility="visible">

                <TextView
                    android:id="@+id/job_name"
                    style="@style/BoldTitleTextStyle"
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_marginTop="@dimen/dimen_8dp"
                    android:paddingEnd="@dimen/dimen_16dp"
                    android:gravity="start|center_horizontal"
                    android:textColor="?colorPrimary"
                    app:layout_constraintStart_toStartOf="@id/guidelineVertical"
                    app:layout_constraintEnd_toStartOf="@id/guidelineVertical2"
                    app:layout_constraintTop_toTopOf="parent"
                    tools:text="JOB_NAME" />

                <TextView
                    android:id="@+id/job_salary"
                    style="@style/StandartTextStyle"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:textColor="?colorPrimary"
                    app:layout_constraintStart_toStartOf="@id/guidelineVertical"
                    app:layout_constraintTop_toBottomOf="@id/job_name"
                    tools:text="JOB_SALARY" />

                <androidx.cardview.widget.CardView
                    android:id="@+id/card_view_company"
                    android:layout_width="0dp"
                    android:layout_height="80dp"
                    android:layout_marginTop="25dp"
                    android:backgroundTint="@color/LightGray_yp"
                    android:clickable="true"
                    android:focusable="true"
                    android:orientation="vertical"
                    app:cardCornerRadius="12dp"
                    app:cardElevation="0dp"
                    app:layout_constraintEnd_toEndOf="@id/guidelineVertical2"
                    app:layout_constraintStart_toStartOf="@id/guidelineVertical"
                    app:layout_constraintTop_toBottomOf="@id/job_salary">

                    <TextView
                        android:id="@+id/company_name"
                        style="@style/TitleTextStyle"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginStart="75dp"
                        android:layout_marginTop="@dimen/dimen_16dp"
                        android:singleLine="true"
                        android:textColor="@color/BlackUniversal_yp"
                        tools:text="COMPANY_NAME_TEXT" />

                    <TextView
                        android:id="@+id/company_city"
                        style="@style/StandartTextStyle"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginStart="75dp"
                        android:layout_marginTop="46dp"
                        android:textColor="@color/BlackUniversal_yp"
                        tools:text="company_city_text" />

                    <ImageView
                        android:id="@+id/iv_company"
                        android:layout_width="@dimen/big_size"
                        android:layout_height="@dimen/big_size"
                        android:layout_marginStart="@dimen/dimen_16dp"
                        android:layout_marginTop="@dimen/dimen_16dp" />
                </androidx.cardview.widget.CardView>

                <TextView
                    android:id="@+id/experience_title"
                    style="@style/LowTitleTextStyle"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="25dp"
                    android:text="@string/experience_title"
                    android:textColor="?colorPrimary"
                    app:layout_constraintStart_toStartOf="@id/guidelineVertical"
                    app:layout_constraintTop_toBottomOf="@id/card_view_company" />

                <TextView
                    android:id="@+id/needed_experience"
                    style="@style/StandartTextStyle"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="@dimen/dimen_8dp"
                    android:textColor="?colorPrimary"
                    app:layout_constraintStart_toStartOf="@id/guidelineVertical"
                    app:layout_constraintTop_toBottomOf="@id/experience_title"
                    tools:text="YEARS" />

                <TextView
                    android:id="@+id/job_time"
                    style="@style/StandartTextStyle"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="@dimen/dimen_8dp"
                    android:textColor="?colorPrimary"
                    app:layout_constraintStart_toStartOf="@id/guidelineVertical"
                    app:layout_constraintTop_toBottomOf="@id/needed_experience"
                    tools:text="JOB_TIME" />

                <TextView
                    android:id="@+id/tvDescriptionTitle"
                    style="@style/TitleTextStyle"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="32dp"
                    android:text="@string/vacancy_description_title"
                    android:textColor="?colorPrimary"
                    app:layout_constraintEnd_toStartOf="@+id/guidelineVertical2"
                    app:layout_constraintStart_toStartOf="@+id/guidelineVertical"
                    app:layout_constraintTop_toBottomOf="@id/job_time" />

                <TextView
                    android:id="@+id/vacancy_description"
                    style="@style/StandartTextStyle"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="@dimen/dimen_16dp"
                    android:gravity="left"
                    android:textColor="?colorPrimary"
                    app:layout_constraintEnd_toStartOf="@+id/guidelineVertical2"
                    app:layout_constraintStart_toStartOf="@+id/guidelineVertical"
                    app:layout_constraintTop_toBottomOf="@id/tvDescriptionTitle"
                    tools:text="DESCRIPTION" />


                <TextView
                    android:id="@+id/key_skills"
                    style="@style/TitleTextStyle"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="@dimen/dimen_8dp"
                    android:textColor="?colorPrimary"
                    android:visibility="visible"
                    app:layout_constraintEnd_toEndOf="@id/guidelineVertical2"
                    app:layout_constraintStart_toStartOf="@id/guidelineVertical"
                    app:layout_constraintTop_toBottomOf="@id/vacancy_description"
                    android:text="Ключевые навыки" />

                <TextView
                    android:id="@+id/key_skills_recycler_view"
                    style="@style/StandartTextStyle"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="@dimen/dimen_8dp"
                    android:paddingHorizontal="@dimen/dimen_16dp"
                    android:textColor="?colorPrimary"
                    android:visibility="visible"
                    app:layout_constraintEnd_toEndOf="@id/card_view_company"
                    app:layout_constraintStart_toStartOf="@id/guidelineVertical"
                    app:layout_constraintTop_toBottomOf="@id/key_skills"
                    tools:itemCount="5"
                    tools:text="NEW_LINES" />

                <TextView
                    android:id="@+id/contact_information"
                    style="@style/TitleTextStyle"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="24dp"
                    android:textColor="?colorPrimary"
                    app:layout_constraintEnd_toEndOf="@id/guidelineVertical2"
                    app:layout_constraintStart_toStartOf="@id/guidelineVertical"
                    app:layout_constraintTop_toBottomOf="@id/key_skills_recycler_view"
                    android:text="@string/contacts" />

                <TextView
                    android:id="@+id/contact_person"
                    style="@style/LowTitleTextStyle"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="@dimen/dimen_16dp"
                    android:text="@string/contact_p"
                    android:textColor="?colorPrimary"
                    app:layout_constraintEnd_toEndOf="@id/guidelineVertical2"
                    app:layout_constraintStart_toStartOf="@id/guidelineVertical"
                    app:layout_constraintTop_toBottomOf="@id/contact_information" />

                <TextView
                    android:id="@+id/contact_person_data"
                    style="@style/StandartTextStyle"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="@dimen/dimen_8dp"
                    android:textColor="?colorPrimary"
                    app:layout_constraintEnd_toEndOf="@id/guidelineVertical2"
                    app:layout_constraintStart_toStartOf="@id/guidelineVertical"
                    app:layout_constraintTop_toBottomOf="@id/contact_person"
                    tools:text="CONTACT_PERSON_DATA" />

                <TextView
                    android:id="@+id/contact_person_email"
                    style="@style/LowTitleTextStyle"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="@dimen/dimen_16dp"
                    android:text="@string/e_mail"
                    android:textColor="?colorPrimary"
                    app:layout_constraintEnd_toEndOf="@id/guidelineVertical2"
                    app:layout_constraintStart_toStartOf="@id/guidelineVertical"
                    app:layout_constraintTop_toBottomOf="@id/contact_person_data" />

                <TextView
                    android:id="@+id/contact_person_email_data"
                    style="@style/StandartTextStyle"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="@dimen/dimen_8dp"
                    android:textColor="@color/Blue_yp"
                    app:layout_constraintEnd_toEndOf="@id/guidelineVertical2"
                    app:layout_constraintStart_toStartOf="@id/guidelineVertical"
                    app:layout_constraintTop_toBottomOf="@id/contact_person_email"
                    tools:text="CONTACT_PERSON_EMAIL_DATA" />

                <TextView
                    android:id="@+id/contact_person_phone"
                    style="@style/LowTitleTextStyle"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="@dimen/dimen_16dp"
                    android:textColor="?colorPrimary"
                    app:layout_constraintEnd_toEndOf="@id/guidelineVertical2"
                    app:layout_constraintStart_toStartOf="@id/guidelineVertical"
                    app:layout_constraintTop_toBottomOf="@id/contact_person_email_data"
                    android:text="Телефон" />

                <TextView
                    android:id="@+id/contact_person_phone_data"
                    style="@style/StandartTextStyle"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="@dimen/dimen_8dp"
                    android:textColor="@color/Blue_yp"
                    app:layout_constraintEnd_toEndOf="@id/guidelineVertical2"
                    app:layout_constraintStart_toStartOf="@id/guidelineVertical"
                    app:layout_constraintTop_toBottomOf="@id/contact_person_phone"
                    tools:text="CONTACT_PERSON_PHONE_DATA" />

                <TextView
                    android:id="@+id/contact_comment"
                    style="@style/LowTitleTextStyle"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="@dimen/dimen_16dp"

                    android:text="@string/comment"
                    android:textColor="?colorPrimary"
                    app:layout_constraintEnd_toEndOf="@id/guidelineVertical2"
                    app:layout_constraintStart_toStartOf="@id/guidelineVertical"
                    app:layout_constraintTop_toBottomOf="@id/contact_person_phone_data" />

                <TextView
                    android:id="@+id/contact_comment_data"
                    style="@style/StandartTextStyle"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="@dimen/dimen_8dp"
                    android:lines="2"
                    android:textColor="?colorPrimary"
                    app:layout_constraintEnd_toEndOf="@id/guidelineVertical2"
                    app:layout_constraintStart_toStartOf="@id/guidelineVertical"
                    app:layout_constraintTop_toBottomOf="@id/contact_comment"
                    tools:text="CONTACT_COMMENT_DATA" />

                <androidx.constraintlayout.widget.Guideline
                    android:id="@+id/guidelineVertical"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:orientation="vertical"
                    app:layout_constraintGuide_begin="@dimen/dimen_16dp" />

                <androidx.constraintlayout.widget.Guideline
                    android:id="@+id/guidelineVertical2"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:orientation="vertical"
                    app:layout_constraintGuide_end="@dimen/dimen_16dp" />

            </androidx.constraintlayout.widget.ConstraintLayout>
        </ScrollView>
    </LinearLayout>

    <androidx.constraintlayout.widget.ConstraintLayout
        android:id="@+id/clPlaceholderTrouble"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:visibility="gone">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_marginHorizontal="@dimen/dimen_16dp"
            android:layout_marginVertical="32dp"
            android:gravity="center"
            android:orientation="vertical"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent">

            <ImageView
                android:id="@+id/src"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:scaleType="centerInside"
                android:src="@drawable/state_image_server_error" />

            <TextView
                android:id="@+id/tvSrcText"
                style="@style/TitleTextStyle"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:gravity="center"
                android:text=""
                android:textAlignment="center"
                android:textColor="@color/BlackDay_WhiteNight"
                tools:text="@string/server_error" />
        </LinearLayout>
    </androidx.constraintlayout.widget.ConstraintLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>

